package prehilife;

public class Move extends AbstractCommand {
	public MobileCreature creature;
        int deplX,deplY;
       
	public Move(MobileCreature creature,int deplX,int deplY) {
		this.creature=creature;
                this.deplX=deplX;
                this.deplY=deplY;
	}

	public void doCommand() {
		creature.move(deplX,deplY);
	}

	public void undoCommand() {
		creature.move(-deplX, -deplY);
	}
}